import base from './base'

export default class News extends base {
    /**
   * 图文会议列表
   */
    static async getList(options) {
        const url = `${this.baseUrl}/adm/graphic`
        return this.get(url, options)
    }
    /**
 * 图文会议新建/编辑
 */
    static async editTeletext(options) {
        const url = `${this.baseUrl}/adm/graphic`
        return this.post(url, options)
    }

    /**
* 图文会议详情
*/
    static async getDetails(options, id) {
        const url = `${this.baseUrl}/adm/graphic/` + id
        return this.get(url, options)
    }


    /**
* 暂停图文会议
*/
    static async stopTeletext(options, id) {
        const url = `${this.baseUrl}/adm/graphic/stop/` + id
        return this.post(url, options)
    }
    /**
* 开启发布图文会议
*/
    static async startTeletext(options, id) {
        const url = `${this.baseUrl}/adm/graphic/start/` + id
        return this.post(url, options)
    }

    /**
* 删除图文会议
*/
    static async deleteTeletext(options, id) {
        const url = `${this.baseUrl}/adm/graphic/` + id
        return this.delete(url, options)
    }


    /**
* 获取医学调研编辑
*/
    static async getEditDetails(options, id) {
        const url = `${this.baseUrl}/adm/graphic/` + id + `/edit`
        return this.get(url, options)
    }


}
